package com.sq.universe.flowable.feign;

import com.sq.universe.base.entity.RespEntity;
import com.sq.universe.flowable.entity.WorkflowEntity;
import com.sq.universe.system.entity.UserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "universe-flowable")
@RequestMapping("/flowable/workflow")
public interface WorkflowFeign {

    @PostMapping("/start")
    public RespEntity start(@RequestBody(required = false)  WorkflowEntity workflowEntity);
}
